package com.java.imauoj.moudel;

import java.util.Date;

public class Message {

    private int id;
    private String title;
    private Date in_date;
    private Date update_date;
    private int user_id;
    private String content;

    public Message() {
    }

    public Message(int id, String title, Date in_date, Date update_date, int user_id, String content) {
        this.id = id;
        this.title = title;
        this.in_date = in_date;
        this.update_date = update_date;
        this.user_id = user_id;
        this.content = content;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getIn_date() {
        return in_date;
    }

    public void setIn_date(Date in_date) {
        this.in_date = in_date;
    }

    public Date getUpdate_date() {
        return update_date;
    }

    public void setUpdate_date(Date update_date) {
        this.update_date = update_date;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", in_date=" + in_date +
                ", update_date=" + update_date +
                ", user_id=" + user_id +
                ", content='" + content + '\'' +
                '}';
    }
}
